package com.newway.back.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.newway.common.result.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("coach_booking_record")
public class CoachBookingRecord extends BaseEntity {

    @TableId
    private Integer id;

    private Integer coachId;

    private String coachName;

    private String bookingDate;

    private String status;//0预约成功 1 预约撤销 2 已使用 3 被取消

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private String userId;

    private String location;

    @TableField(exist = false)
    private String userName;

    //预定时间
    private String bookingTime;

    //价格
    private Integer price;

    //小时
    private Integer num;


}
